package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsAudioVisual;
import com.wenwu.common.bean.RelicsAudioVisualExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsAudioVisualMapper  extends Dao {
    int countByExample(RelicsAudioVisualExample example);

    int deleteByExample(RelicsAudioVisualExample example);

    int deleteByPrimaryKey(Integer audioId);

    int insert(RelicsAudioVisual record);

    int insertSelective(RelicsAudioVisual record);

    List<RelicsAudioVisual> selectByExample(RelicsAudioVisualExample example);

    RelicsAudioVisual selectByPrimaryKey(Integer audioId);

    int updateByExampleSelective(@Param("record") RelicsAudioVisual record, @Param("example") RelicsAudioVisualExample example);

    int updateByExample(@Param("record") RelicsAudioVisual record, @Param("example") RelicsAudioVisualExample example);

    int updateByPrimaryKeySelective(RelicsAudioVisual record);

    int updateByPrimaryKey(RelicsAudioVisual record);
    
    
    /**
     * 分页查询
     * @param relicsAudioVisual
     * @param pageVo 
     * @return
     */
    List<RelicsAudioVisual> selectListByPage(@Param("relicsAudioVisual") RelicsAudioVisual relicsAudioVisual,@Param("pageVo")  PaginationVO pageVo);
    /**
     * 分页查询总数
     * @param relicsAudioVisual
     * @return
     */
    int selectTotalRecord(@Param("relicsAudioVisual") RelicsAudioVisual relicsAudioVisual);

    /**
     * 批量删除
     * @param keyList
     * @return
     */
	int deleteInfoByKey(List<String> keyList);
}